namespace YM {
    export class AudioMgr {
        public playEffect(url: string, loops?: number, complete?: laya.utils.Handler, soundClass?: new () => any, startTime?: number) {
            return Laya.SoundManager.playSound(url, loops, complete, soundClass, startTime);
        }
        public playMusic(url: string, loops?: number, complete?: laya.utils.Handler, soundClass?: new () => any, startTime?: number) {
            return Laya.SoundManager.playMusic(url, loops, complete, startTime);
        }
        public setEffectMute(mute: boolean): void {
            Laya.SoundManager.soundMuted = mute;
        }
        public setMusicMute(mute: boolean): void {
            Laya.SoundManager.musicMuted = mute;
        }
        public setMute(mute: boolean): void{
            this.setEffectMute(mute);
            this.setMusicMute(mute);
        }
        public destroySound(url:string){
            Laya.SoundManager.destroySound(url);
        }
        public stopMusic(){
            Laya.SoundManager.stopMusic();
        }
        public stopEffect(url:string){
            Laya.SoundManager.stopSound(url);
        }
    }
}